/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author hendrikdekock
 */
@Entity
@Table(name = "TEAMSBYLEAGUE")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Teamsbyleague.findAll", query = "SELECT t FROM Teamsbyleague t"),
    @NamedQuery(name = "Teamsbyleague.findByTeamid", query = "SELECT t FROM Teamsbyleague t WHERE t.teamid = :teamid"),
    @NamedQuery(name = "Teamsbyleague.findByLeagueid", query = "SELECT t FROM Teamsbyleague t WHERE t.leagueid = :leagueid")})
public class Teamsbyleague implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "TEAMID")
    private int teamid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "LEAGUEID")
    private int leagueid;

    public Teamsbyleague() {
    }

    public int getTeamid() {
        return teamid;
    }

    public void setTeamid(int teamid) {
        this.teamid = teamid;
    }

    public int getLeagueid() {
        return leagueid;
    }

    public void setLeagueid(int leagueid) {
        this.leagueid = leagueid;
    }
    
}
